package cn.iocoder.yudao.module.erp.controller.admin.priaccount.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - ERP 一级库台账 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PriAccountRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8700")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "主单id）")
    @ExcelProperty(value = "主单id", converter = DictConvert.class)
    @DictFormat("inorout_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String mainId;

    @Schema(description = "事务类型（出库、入库、其他）")
    @ExcelProperty(value = "事务类型（出库、入库、其他）", converter = DictConvert.class)
    @DictFormat("inorout_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String affairs;

    @Schema(description = "事务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "7501")
    @ExcelProperty("事务编号")
    private String affairsId;

    @Schema(description = "单位id", example = "17622")
    @ExcelProperty("单位id")
    private String deptId;

    @Schema(description = "产品名称", example = "张三")
    @ExcelProperty("产品名称")
    private String productName;

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "9928")
    @ExcelProperty("产品编号")
    private String productId;

    @Schema(description = "产品单位")
    @ExcelProperty("产品单位")
    private String productUnit;

    @Schema(description = "产品规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品规格")
    private String productStandards;

    @Schema(description = "产品单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "18413")
    @ExcelProperty("产品单价")
    private BigDecimal productPrice;

    @Schema(description = "批次", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("批次")
    private String productBatch;

    @Schema(description = "批次")
    private String inboundBatch;

    @Schema(description = "有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("有效期")
    private LocalDateTime productValidityDate;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "30089")
    @ExcelProperty("数量")
    private String count;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "状态", example = "1")
    @ExcelProperty("状态")
    private Long status;

    @Schema(description = "流程实例的编号", example = "4293")
    @ExcelProperty("流程实例的编号")
    private String processInstanceId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "产品单位编号")
    private Long productUnitId;

    @Schema(description = "产品单位")
    @ExcelProperty("产品单位")
    private String productUnitName;

    @Schema(description = "产品分类编号")
    private Long productCategoryId;

    @Schema(description = "产品分类名称")
    @ExcelProperty("产品分类名称")
    private String productCategoryName;

    @Schema(description = "产品采购价格")
    @ExcelProperty("产品采购价格")
    private BigDecimal productPurchasePrice;



}